package servlets;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;


public class DatabaseConection {
	
	private String jDBC_DRIVER = "com.mysql.jdbc.Driver";
	private static String DB_URL = "jdbc:mysql://localhost/ds";
	Connection conn = null;
	Statement stmt = null;
	
	protected static Connection getConnectionToDB() throws ClassNotFoundException, SQLException{
		
		// Database credentials
		String USER = "root";
		String PASS = "";
		Class.forName("com.mysql.jdbc.Driver");

		return DriverManager.getConnection(DB_URL, USER, PASS);
		
	}
	
}
